package com.kpmg.datalake.common.vo;

import com.alibaba.fastjson.JSONObject;
import java.io.Serializable;

/**
 * @author Alex.zhao [alex.zhao@kpmg.com]
 * @since Created on azhao6 on 2018-06-27 13:12:33
 */
public class KeyAndValueDTO<K, V> implements Serializable {

    private static final long serialVersionUID = 5038274039741051022L;
  private K key;
  private V value;

    public KeyAndValueDTO() {
    }

    public KeyAndValueDTO(K key, V value) {
        this.key = key;
        this.value = value;
    }

    public K getKey() {
        return key;
    }

    public void setKey(K key) {
        this.key = key;
    }

    public V getValue() {
        return value;
    }

    public void setValue(V value) {
        this.value = value;
    }

    @Override
    public String toString() {
      return this.getClass() + JSONObject.toJSONString(this);
    }
}
